package com.xinyun.server.protocol.send;

import com.xinyun.server.protocol.ProtocolData;

import java.util.Random;

/**
 * Created by bubusy on 16/5/22.
 */
public class ScanOne extends ProtocolData {

    public ScanOne(int pid, int mid) {
        Random random = new Random();
        int num = random.nextInt(255);
        this.header.setLength(4);
        this.header.setMsgType(4);
        this.header.setB4(num);//随机数
        this.header.setB5(0);
        this.header.setB6(0);

        this.bodyBytes.writeShortLE(pid);
        this.bodyBytes.writeShortLE(mid);
    }

}
